package com.hh.core.log;

import java.io.Serializable;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.web.context.WebApplicationContext;

import com.hh.core.common.SpringContextHolder;

/**
 * 
* @ClassName: LogTempObject  
* @Description: TODO(操作日志 临时存在对象)  
* @author hxn
* @date 2018年2月9日 下午3:18:54  
*
 */
@Component
@Scope(scopeName = WebApplicationContext.SCOPE_SESSION)  //该bean仅在当前HTTP session内有效
public class LogTempObject implements Serializable{

	private static final long serialVersionUID = 595584063681600511L;
	
	private Object[] object;

	public Object[] getObject() {
		return object;
	}

	public void setObject(Object...object) {
		this.object = object;
	}
	
	public static LogTempObject me(){
		LogTempObject bean = SpringContextHolder.getBean(LogTempObject.class);
        return bean;
    }
}
